package com.kfy.lifecycle3;

import android.app.Application;

import androidx.lifecycle.ProcessLifecycleOwner;

/**
 * @ProjectName: JetpackDemo
 * @Package: com.kfy.lifecycle3
 * @Author: K.F.Y
 * @Date: 2022/4/26
 */
public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        ProcessLifecycleOwner.get().getLifecycle().addObserver(new ApplicationObserver());
    }
}
